package com.example.tsbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *
 * @TableName task
 */
@TableName(value ="task")
@Data
public class Task implements Serializable {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 任务名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "任务名称")
    private String name;

    /**
     * 任务类型
     */
    @ApiModelProperty(value = "任务类型")
    @TableField(value = "type")
    private String type;

    /**
     * 计算进度
     */
    @ApiModelProperty(value = "计算进度")
    @TableField(value = "progress")
    private Double progress;

    /**
     * 是否完成
     */
    @ApiModelProperty(value = "是否完成")
    @TableField(value = "done")
    private Integer done;

    /**
     * 参数JSON
     */
    @ApiModelProperty(value = "参数JSON")
    @TableField(value = "parameter")
    private String parameter;

    /**
     * 响应JSON
     */
    @ApiModelProperty(value = "响应JSON")
    @TableField(value = "response")
    private String response;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
